[[name="roleinfo_edit",displayname="人员编辑",rendertype="Edit",modelname="人员编辑"]]
[[model="roleinfo",renderMode="edit",datakey=""]]
<input id="pwbs" type="hidden" value="wbsdsdf" />
<table>
    <tr>
        <td>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            $roleinfo.Columns.get_Item("roleName").DisplayName
        </td>
        <td>
            $roleinfo.Rows.get_Item(0).get_Item("roleName").Render()
        </td>
    </tr>
   
    <tr>
        <td>
            $roleinfo.Columns.get_Item("roleCode").DisplayName
        </td>
        <td>
            $roleinfo.Rows.get_Item(0).get_Item("roleCode").Render()
        </td>
    </tr>
    
    <tr>
        <td>
            $roleinfo.Columns.get_Item("departWBS").DisplayName
        </td>
        <td>
            $roleinfo.Rows.get_Item(0).get_Item("departWBS").Render()
        </td>
    </tr>
    <tr>
        <td>
            $roleinfo.Columns.get_Item("status").DisplayName
        </td>
        <td>
            $roleinfo.Rows.get_Item(0).get_Item("status").Render()
        </td>
    </tr>
    <tr>
        <td>
            $roleinfo.Columns.get_Item("creatorCode").DisplayName
        </td>
        <td>
            $roleinfo.Rows.get_Item(0).get_Item("creatorCode").Render()
        </td>
    </tr>
        <tr>
        <td>
            $roleinfo.Columns.get_Item("createTime").DisplayName
        </td>
        <td>
            $roleinfo.Rows.get_Item(0).get_Item("createTime").Render()
        </td>
    </tr>
</table>
$render.RenderButton("save") $render.RenderButton("reset") $render.RenderButton("add") $render.RenderButton("del")
<div id="modelInfo" style="display: none">
    $htmlmodel
</div>
<script language="javascript" type="text/javascript">

    function ProcessBeforeSave(modelName, opttype) {
        debugger;
        return true;
    }

    function ProcessAfterSave(url) {
        window.parent.dept_tree.location.reload();
    }

    //删除方法
    function GetDelId(){
        debugger;
        var id = document.getElementById("roleinfo$wbsCode$0").value;
        return id;
    }
</script>
